package com.CampusLife.service.impl;


import  com.CampusLife.bean.Login;
import  com.CampusLife.dao.ILoginDao;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import  com.CampusLife.service.ILoginService;

import java.util.List;

/**
 * 记录用户登录信息
 */
@Transactional
@Service
public class LoginServiceImpl implements ILoginService {

    @Autowired
    private ILoginDao iLoginDao;


    @Override
    public void add(Login login) {
        iLoginDao.add(login);
    }
    @Override
    public   List<Login> findAll(){

        return  iLoginDao.findAll();
    }
  @Override
   public List<Login> byName(String name){
        return iLoginDao.byName(name);
  }

}
